# $Id: PKGBUILD 66012 2012-02-22 14:24:07Z spupykin $
# Maintainer: kevin <kevin@archlinux.org>
# Contributor: Eric Johnson <eric@coding-zone.com>

pkgname=perl-mail-spf-query
_realname=Mail-SPF-Query
pkgver=1.999.1
pkgrel=5
pkgdesc="Perl module that provides SPF support"
arch=('any')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl-net-cidr-lite>=0.15' 'perl-net-dns>=0.46' 'perl-sys-hostname-long' 'perl-uri' 'perl>=5.10.0')
options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf-query/${_realname}-${pkgver}.tar.gz)
md5sums=('6d62d024d1614fa1fa4f43bd39ee7bf0')

build() {
  cd ${srcdir}/${_realname}-${pkgver}
  # install module in vendor directories
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd ${srcdir}/${_realname}-${pkgver}
  make install DESTDIR=${pkgdir}
}
